import request from '@/utils/request'

// 查询藏品作者列表
export function listAuthor(query) {
    return request({
        url: '/author/author/list',
        method: 'get',
        params: query
    })
}

// 查询藏品作者详细
export function getAuthor(collectionAuthorId) {
    return request({
        url: '/author/author/' + collectionAuthorId,
        method: 'get'
    })
}

// 新增藏品作者
export function addAuthor(data) {
    return request({
        url: '/author/author',
        method: 'post',
        data: data
    })
}

// 修改藏品作者
export function updateAuthor(data) {
    return request({
        url: '/author/author',
        method: 'put',
        data: data
    })
}

// 删除藏品作者
export function delAuthor(collectionAuthorId) {
    return request({
        url: '/author/author/' + collectionAuthorId,
        method: 'delete'
    })
}